package com.anjubao.parking.municipal.roadside.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
import javax.validation.constraints.NotNull;

/**
 * 同步视频桩、视频桩车位表、状态表表单
 */
@Data
@ApiModel(value = "VideoPileForm",description = "同步视频桩数据")
public class VideoPileForm {

    @NotNull(message = "设备id不能为空")
    @ApiModelProperty(value = "设备id",required = true)
    private Long deviceId;

    @NotNull(message = "设备编号不能为空")
    @ApiModelProperty(value = "设备编号",required = true)
    private String deviceCode;

    @ApiModelProperty(value = "设备名称",required = true)
    private String deviceName;

    @NotNull(message = "运行状态不能为空")
    @ApiModelProperty(value = "运行状态 0:断线 1:在线",required = true)
    private Integer isOnline;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态 -1：故障，0：禁用，1：正常",required = true)
    private Integer deviceStatus;

    @ApiModelProperty(value = "剩余电量")
    private Integer remainingBattery;

    @NotNull(message = "地址不能为空")
    @ApiModelProperty(value = "地址",required = true)
    private String location;

    @ApiModelProperty(value = "机器序列号")
    private String machineNo;

    @NotNull(message = "设备类型不能为空")
    @ApiModelProperty(value = "设备类型 1:低杆 2:中杆 3:高杆",required = true)
    private Integer videoPileType;

    @NotNull(message = "车场id不能为空")
    @ApiModelProperty(value = "停车场ID",required = true)
    private Long parkingLotId;

    @NotNull(message = "车场编号不能为空")
    @ApiModelProperty(value = "停车场编号",required = true)
    private String parkingLotCode;

    @NotNull(message = "车场名称不能为空")
    @ApiModelProperty(value = "停车场名称",required = true)
    private String parkingLotName;

    @ApiModelProperty(value = "ip地址",required = true)
    private String ipAddr;

    @NotNull(message = "车位id不能为空")
    @ApiModelProperty(value = "车位id",required = true)
    private List<Long> parkingLotSlotId;

}
